/**
 * Created by WHD on 2017/5/25.
 */

/*获取reallystory数据*/
myapp.factory('myCache',['$http',function($http){
    return $http({
        url:'/api/zhenshi/get',
        method:'get'
    })
}]);
/*获取createstory数据*/
myapp.factory('myCache1',['$http',function($http){
    return $http({
        url:'/api/chuangzuo/get',
        method:'get'
    })
}]);

/*获取reallydetail数据*/

myapp.factory('detail', ['$http',function ($http) {
   return  {
       getreally: function (randcode) {
           return  $http({
               url:'/api/detail/get/'+randcode,
               method:'get'
           })
       }
   }
}]);